@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/index108.js CHANGED
@@ -1,16 +1,352 @@
1
- import { FormBase as e } from "./index42.js";
2
- import { FileUpload as t } from "./index107.js";
3
- import { jsx as n } from "react/jsx-runtime";
4
- //#region src/Form/FormFileUpload/index.tsx
5
- var r = (r) => /* @__PURE__ */ n(e, {
6
- ...r,
7
- children: ({ onChange: e, value: i, disabled: a }) => /* @__PURE__ */ n(t, {
8
- ...r,
9
- value: i,
10
- onChange: e,
11
- disabled: a || r.disabled,
12
- className: r.className
13
- })
1
+ "use client";
2
+ import { cn as e } from "./index3.js";
3
+ import { Button as t } from "./index10.js";
4
+ import { Separator as n } from "./index80.js";
5
+ import { Input as r } from "./index87.js";
6
+ import { Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c } from "./index105.js";
7
+ import { Skeleton as l } from "./index106.js";
8
+ import { Tooltip as u, TooltipContent as d, TooltipProvider as f, TooltipTrigger as p } from "./index107.js";
9
+ import { PanelLeftIcon as m } from "lucide-react";
10
+ import * as h from "react";
11
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
12
+ import { cva as v } from "class-variance-authority";
13
+ import { Slot as y } from "@radix-ui/react-slot";
14
+ //#region src/ui/sidebar.tsx
15
+ var b = 768;
16
+ function x() {
17
+ return h.useSyncExternalStore((e) => {
18
+ let t = window.matchMedia(`(max-width: ${b - 1}px)`);
19
+ return t.addEventListener("change", e), () => t.removeEventListener("change", e);
20
+ }, () => window.matchMedia(`(max-width: ${b - 1}px)`).matches, () => !1);
21
+ }
22
+ var S = "sidebar_state", C = 3600 * 24 * 7, w = "16rem", T = "18rem", E = "3rem", D = "b", O = h.createContext(null);
23
+ function k() {
24
+ let e = h.useContext(O);
25
+ if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
26
+ return e;
27
+ }
28
+ function A({ defaultOpen: t = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }) {
29
+ let c = x(), [l, u] = h.useState(!1), [d, p] = h.useState(t), m = n ?? d, _ = h.useCallback((e) => {
30
+ let t = typeof e == "function" ? e(m) : e;
31
+ r ? r(t) : p(t), document.cookie = `${S}=${t}; path=/; max-age=${C}`;
32
+ }, [r, m]), v = h.useCallback(() => c ? u((e) => !e) : _((e) => !e), [
33
+ c,
34
+ _,
35
+ u
36
+ ]);
37
+ h.useEffect(() => {
38
+ let e = (e) => {
39
+ e.key === D && (e.metaKey || e.ctrlKey) && (e.preventDefault(), v());
40
+ };
41
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
42
+ }, [v]);
43
+ let y = m ? "expanded" : "collapsed", b = h.useMemo(() => ({
44
+ state: y,
45
+ open: m,
46
+ setOpen: _,
47
+ isMobile: c,
48
+ openMobile: l,
49
+ setOpenMobile: u,
50
+ toggleSidebar: v
51
+ }), [
52
+ y,
53
+ m,
54
+ _,
55
+ c,
56
+ l,
57
+ u,
58
+ v
59
+ ]);
60
+ return /* @__PURE__ */ g(O.Provider, {
61
+ value: b,
62
+ children: /* @__PURE__ */ g(f, {
63
+ delayDuration: 0,
64
+ children: /* @__PURE__ */ g("div", {
65
+ "data-slot": "sidebar-wrapper",
66
+ style: {
67
+ "--sidebar-width": w,
68
+ "--sidebar-width-icon": E,
69
+ ...a
70
+ },
71
+ className: e("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
72
+ ...s,
73
+ children: o
74
+ })
75
+ })
76
+ });
77
+ }
78
+ function j({ side: t = "left", variant: n = "sidebar", collapsible: r = "offcanvas", className: l, children: u, ...d }) {
79
+ let { isMobile: f, state: p, openMobile: m, setOpenMobile: h } = k();
80
+ return r === "none" ? /* @__PURE__ */ g("div", {
81
+ "data-slot": "sidebar",
82
+ className: e("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", l),
83
+ ...d,
84
+ children: u
85
+ }) : f ? /* @__PURE__ */ g(i, {
86
+ open: m,
87
+ onOpenChange: h,
88
+ ...d,
89
+ children: /* @__PURE__ */ _(a, {
90
+ "data-sidebar": "sidebar",
91
+ "data-slot": "sidebar",
92
+ "data-mobile": "true",
93
+ className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
94
+ style: { "--sidebar-width": T },
95
+ side: t,
96
+ children: [/* @__PURE__ */ _(s, {
97
+ className: "sr-only",
98
+ children: [/* @__PURE__ */ g(c, { children: "Sidebar" }), /* @__PURE__ */ g(o, { children: "Displays the mobile sidebar." })]
99
+ }), /* @__PURE__ */ g("div", {
100
+ className: "flex h-full w-full flex-col",
101
+ children: u
102
+ })]
103
+ })
104
+ }) : /* @__PURE__ */ _("div", {
105
+ className: "group peer text-sidebar-foreground hidden md:block",
106
+ "data-state": p,
107
+ "data-collapsible": p === "collapsed" ? r : "",
108
+ "data-variant": n,
109
+ "data-side": t,
110
+ "data-slot": "sidebar",
111
+ children: [/* @__PURE__ */ g("div", {
112
+ "data-slot": "sidebar-gap",
113
+ className: e("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", n === "floating" || n === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
114
+ }), /* @__PURE__ */ g("div", {
115
+ "data-slot": "sidebar-container",
116
+ className: e("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", t === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", l),
117
+ ...d,
118
+ children: /* @__PURE__ */ g("div", {
119
+ "data-sidebar": "sidebar",
120
+ "data-slot": "sidebar-inner",
121
+ className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
122
+ children: u
123
+ })
124
+ })]
125
+ });
126
+ }
127
+ function M({ className: n, onClick: r, ...i }) {
128
+ let { toggleSidebar: a } = k();
129
+ return /* @__PURE__ */ _(t, {
130
+ "data-sidebar": "trigger",
131
+ "data-slot": "sidebar-trigger",
132
+ variant: "ghost",
133
+ size: "icon",
134
+ className: e("size-7", n),
135
+ onClick: (e) => {
136
+ r?.(e), a();
137
+ },
138
+ ...i,
139
+ children: [/* @__PURE__ */ g(m, {}), /* @__PURE__ */ g("span", {
140
+ className: "sr-only",
141
+ children: "Toggle Sidebar"
142
+ })]
143
+ });
144
+ }
145
+ function N({ className: t, ...n }) {
146
+ let { toggleSidebar: r } = k();
147
+ return /* @__PURE__ */ g("button", {
148
+ "data-sidebar": "rail",
149
+ "data-slot": "sidebar-rail",
150
+ "aria-label": "Toggle Sidebar",
151
+ tabIndex: -1,
152
+ onClick: r,
153
+ title: "Toggle Sidebar",
154
+ className: e("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", t),
155
+ ...n
156
+ });
157
+ }
158
+ function P({ className: t, ...n }) {
159
+ return /* @__PURE__ */ g("main", {
160
+ "data-slot": "sidebar-inset",
161
+ className: e("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", t),
162
+ ...n
163
+ });
164
+ }
165
+ function F({ className: t, ...n }) {
166
+ return /* @__PURE__ */ g(r, {
167
+ "data-slot": "sidebar-input",
168
+ "data-sidebar": "input",
169
+ className: e("bg-background h-8 w-full shadow-none", t),
170
+ ...n
171
+ });
172
+ }
173
+ function I({ className: t, ...n }) {
174
+ return /* @__PURE__ */ g("div", {
175
+ "data-slot": "sidebar-header",
176
+ "data-sidebar": "header",
177
+ className: e("flex flex-col gap-2 p-2", t),
178
+ ...n
179
+ });
180
+ }
181
+ function L({ className: t, ...n }) {
182
+ return /* @__PURE__ */ g("div", {
183
+ "data-slot": "sidebar-footer",
184
+ "data-sidebar": "footer",
185
+ className: e("flex flex-col gap-2 p-2", t),
186
+ ...n
187
+ });
188
+ }
189
+ function R({ className: t, ...r }) {
190
+ return /* @__PURE__ */ g(n, {
191
+ "data-slot": "sidebar-separator",
192
+ "data-sidebar": "separator",
193
+ className: e("bg-sidebar-border mx-2 w-auto", t),
194
+ ...r
195
+ });
196
+ }
197
+ function z({ className: t, ...n }) {
198
+ return /* @__PURE__ */ g("div", {
199
+ "data-slot": "sidebar-content",
200
+ "data-sidebar": "content",
201
+ className: e("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", t),
202
+ ...n
203
+ });
204
+ }
205
+ function B({ className: t, ...n }) {
206
+ return /* @__PURE__ */ g("div", {
207
+ "data-slot": "sidebar-group",
208
+ "data-sidebar": "group",
209
+ className: e("relative flex w-full min-w-0 flex-col p-2", t),
210
+ ...n
211
+ });
212
+ }
213
+ function V({ className: t, asChild: n = !1, ...r }) {
214
+ return /* @__PURE__ */ g(n ? y : "div", {
215
+ "data-slot": "sidebar-group-label",
216
+ "data-sidebar": "group-label",
217
+ className: e("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", t),
218
+ ...r
219
+ });
220
+ }
221
+ function H({ className: t, asChild: n = !1, ...r }) {
222
+ return /* @__PURE__ */ g(n ? y : "button", {
223
+ "data-slot": "sidebar-group-action",
224
+ "data-sidebar": "group-action",
225
+ className: e("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", t),
226
+ ...r
227
+ });
228
+ }
229
+ function U({ className: t, ...n }) {
230
+ return /* @__PURE__ */ g("div", {
231
+ "data-slot": "sidebar-group-content",
232
+ "data-sidebar": "group-content",
233
+ className: e("w-full text-sm", t),
234
+ ...n
235
+ });
236
+ }
237
+ function W({ className: t, ...n }) {
238
+ return /* @__PURE__ */ g("ul", {
239
+ "data-slot": "sidebar-menu",
240
+ "data-sidebar": "menu",
241
+ className: e("flex w-full min-w-0 flex-col gap-1", t),
242
+ ...n
243
+ });
244
+ }
245
+ function G({ className: t, ...n }) {
246
+ return /* @__PURE__ */ g("li", {
247
+ "data-slot": "sidebar-menu-item",
248
+ "data-sidebar": "menu-item",
249
+ className: e("group/menu-item relative", t),
250
+ ...n
251
+ });
252
+ }
253
+ var K = v("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
254
+ variants: {
255
+ variant: {
256
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
257
+ outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
258
+ },
259
+ size: {
260
+ default: "h-8 text-sm",
261
+ sm: "h-7 text-xs",
262
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
263
+ }
264
+ },
265
+ defaultVariants: {
266
+ variant: "default",
267
+ size: "default"
268
+ }
14
269
  });
270
+ function q({ asChild: t = !1, isActive: n = !1, variant: r = "default", size: i = "default", tooltip: a, className: o, ...s }) {
271
+ let c = t ? y : "button", { isMobile: l, state: f } = k(), m = /* @__PURE__ */ g(c, {
272
+ "data-slot": "sidebar-menu-button",
273
+ "data-sidebar": "menu-button",
274
+ "data-size": i,
275
+ "data-active": n,
276
+ className: e(K({
277
+ variant: r,
278
+ size: i
279
+ }), o),
280
+ ...s
281
+ });
282
+ return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ _(u, { children: [/* @__PURE__ */ g(p, {
283
+ asChild: !0,
284
+ children: m
285
+ }), /* @__PURE__ */ g(d, {
286
+ side: "right",
287
+ align: "center",
288
+ hidden: f !== "collapsed" || l,
289
+ ...a
290
+ })] })) : m;
291
+ }
292
+ function J({ className: t, asChild: n = !1, showOnHover: r = !1, ...i }) {
293
+ return /* @__PURE__ */ g(n ? y : "button", {
294
+ "data-slot": "sidebar-menu-action",
295
+ "data-sidebar": "menu-action",
296
+ className: e("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", r && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", t),
297
+ ...i
298
+ });
299
+ }
300
+ function Y({ className: t, ...n }) {
301
+ return /* @__PURE__ */ g("div", {
302
+ "data-slot": "sidebar-menu-badge",
303
+ "data-sidebar": "menu-badge",
304
+ className: e("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", t),
305
+ ...n
306
+ });
307
+ }
308
+ function X({ className: t, showIcon: n = !1, ...r }) {
309
+ let i = h.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
310
+ return /* @__PURE__ */ _("div", {
311
+ "data-slot": "sidebar-menu-skeleton",
312
+ "data-sidebar": "menu-skeleton",
313
+ className: e("flex h-8 items-center gap-2 rounded-md px-2", t),
314
+ ...r,
315
+ children: [n && /* @__PURE__ */ g(l, {
316
+ className: "size-4 rounded-md",
317
+ "data-sidebar": "menu-skeleton-icon"
318
+ }), /* @__PURE__ */ g(l, {
319
+ className: "h-4 max-w-(--skeleton-width) flex-1",
320
+ "data-sidebar": "menu-skeleton-text",
321
+ style: { "--skeleton-width": i }
322
+ })]
323
+ });
324
+ }
325
+ function Z({ className: t, ...n }) {
326
+ return /* @__PURE__ */ g("ul", {
327
+ "data-slot": "sidebar-menu-sub",
328
+ "data-sidebar": "menu-sub",
329
+ className: e("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", t),
330
+ ...n
331
+ });
332
+ }
333
+ function Q({ className: t, ...n }) {
334
+ return /* @__PURE__ */ g("li", {
335
+ "data-slot": "sidebar-menu-sub-item",
336
+ "data-sidebar": "menu-sub-item",
337
+ className: e("group/menu-sub-item relative", t),
338
+ ...n
339
+ });
340
+ }
341
+ function $({ asChild: t = !1, size: n = "md", isActive: r = !1, className: i, ...a }) {
342
+ return /* @__PURE__ */ g(t ? y : "a", {
343
+ "data-slot": "sidebar-menu-sub-button",
344
+ "data-sidebar": "menu-sub-button",
345
+ "data-size": n,
346
+ "data-active": r,
347
+ className: e("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", n === "sm" && "text-xs", n === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", i),
348
+ ...a
349
+ });
350
+ }
15
351
  //#endregion
16
- export { r as default };
352
+ export { j as Sidebar, z as SidebarContent, L as SidebarFooter, B as SidebarGroup, H as SidebarGroupAction, U as SidebarGroupContent, V as SidebarGroupLabel, I as SidebarHeader, F as SidebarInput, P as SidebarInset, W as SidebarMenu, J as SidebarMenuAction, Y as SidebarMenuBadge, q as SidebarMenuButton, G as SidebarMenuItem, X as SidebarMenuSkeleton, Z as SidebarMenuSub, $ as SidebarMenuSubButton, Q as SidebarMenuSubItem, A as SidebarProvider, N as SidebarRail, R as SidebarSeparator, M as SidebarTrigger, k as useSidebar };
package/dist/index109.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index43.cjs"),t=require("./index108.cjs");let n=require("react/jsx-runtime");var r=r=>(0,n.jsx)(e.FormBase,{...r,children:({onChange:e,value:i,disabled:a})=>(0,n.jsx)(t.FileUpload,{...r,value:i,onChange:e,disabled:a||r.disabled,className:r.className})});exports.default=r;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index4.cjs"),n=require("./index11.cjs"),r=require("./index81.cjs"),i=require("./index88.cjs"),a=require("./index106.cjs"),o=require("./index107.cjs"),s=require("./index108.cjs");let c=require("lucide-react"),l=require("react");l=e.__toESM(l,1);let u=require("react/jsx-runtime"),d=require("class-variance-authority"),f=require("@radix-ui/react-slot");var p=768;function m(){return l.useSyncExternalStore(e=>{let t=window.matchMedia(`(max-width: ${p-1}px)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},()=>window.matchMedia(`(max-width: ${p-1}px)`).matches,()=>!1)}var h=`sidebar_state`,g=3600*24*7,_=`16rem`,v=`18rem`,y=`3rem`,b=`b`,x=l.createContext(null);function S(){let e=l.useContext(x);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function C({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:a,children:o,...c}){let d=m(),[f,p]=l.useState(!1),[v,S]=l.useState(e),C=n??v,w=l.useCallback(e=>{let t=typeof e==`function`?e(C):e;r?r(t):S(t),document.cookie=`${h}=${t}; path=/; max-age=${g}`},[r,C]),T=l.useCallback(()=>d?p(e=>!e):w(e=>!e),[d,w,p]);l.useEffect(()=>{let e=e=>{e.key===b&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),T())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[T]);let E=C?`expanded`:`collapsed`,D=l.useMemo(()=>({state:E,open:C,setOpen:w,isMobile:d,openMobile:f,setOpenMobile:p,toggleSidebar:T}),[E,C,w,d,f,p,T]);return(0,u.jsx)(x.Provider,{value:D,children:(0,u.jsx)(s.TooltipProvider,{delayDuration:0,children:(0,u.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":_,"--sidebar-width-icon":y,...a},className:t.cn(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,i),...c,children:o})})})}function w({side:e=`left`,variant:n=`sidebar`,collapsible:r=`offcanvas`,className:i,children:o,...s}){let{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=S();return r===`none`?(0,u.jsx)(`div`,{"data-slot":`sidebar`,className:t.cn(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,i),...s,children:o}):c?(0,u.jsx)(a.Sheet,{open:d,onOpenChange:f,...s,children:(0,u.jsxs)(a.SheetContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":v},side:e,children:[(0,u.jsxs)(a.SheetHeader,{className:`sr-only`,children:[(0,u.jsx)(a.SheetTitle,{children:`Sidebar`}),(0,u.jsx)(a.SheetDescription,{children:`Displays the mobile sidebar.`})]}),(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:o})]})}):(0,u.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":l,"data-collapsible":l===`collapsed`?r:``,"data-variant":n,"data-side":e,"data-slot":`sidebar`,children:[(0,u.jsx)(`div`,{"data-slot":`sidebar-gap`,className:t.cn(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,n===`floating`||n===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,u.jsx)(`div`,{"data-slot":`sidebar-container`,className:t.cn(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,n===`floating`||n===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,i),...s,children:(0,u.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:o})})]})}function T({className:e,onClick:r,...i}){let{toggleSidebar:a}=S();return(0,u.jsxs)(n.Button,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:t.cn(`size-7`,e),onClick:e=>{r?.(e),a()},...i,children:[(0,u.jsx)(c.PanelLeftIcon,{}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function E({className:e,...n}){let{toggleSidebar:r}=S();return(0,u.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:r,title:`Toggle Sidebar`,className:t.cn(`hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...n})}function D({className:e,...n}){return(0,u.jsx)(`main`,{"data-slot":`sidebar-inset`,className:t.cn(`bg-background relative flex w-full flex-1 flex-col`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...n})}function O({className:e,...n}){return(0,u.jsx)(i.Input,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:t.cn(`bg-background h-8 w-full shadow-none`,e),...n})}function k({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function A({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:t.cn(`flex flex-col gap-2 p-2`,e),...n})}function j({className:e,...n}){return(0,u.jsx)(r.Separator,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:t.cn(`bg-sidebar-border mx-2 w-auto`,e),...n})}function M({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:t.cn(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...n})}function N({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:t.cn(`relative flex w-full min-w-0 flex-col p-2`,e),...n})}function P({className:e,asChild:n=!1,...r}){return(0,u.jsx)(n?f.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:t.cn(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...r})}function F({className:e,asChild:n=!1,...r}){return(0,u.jsx)(n?f.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:t.cn(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...r})}function I({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:t.cn(`w-full text-sm`,e),...n})}function L({className:e,...n}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:t.cn(`flex w-full min-w-0 flex-col gap-1`,e),...n})}function R({className:e,...n}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:t.cn(`group/menu-item relative`,e),...n})}var z=(0,d.cva)(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function B({asChild:e=!1,isActive:n=!1,variant:r=`default`,size:i=`default`,tooltip:a,className:o,...c}){let l=e?f.Slot:`button`,{isMobile:d,state:p}=S(),m=(0,u.jsx)(l,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":n,className:t.cn(z({variant:r,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,u.jsxs)(s.Tooltip,{children:[(0,u.jsx)(s.TooltipTrigger,{asChild:!0,children:m}),(0,u.jsx)(s.TooltipContent,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...a})]})):m}function V({className:e,asChild:n=!1,showOnHover:r=!1,...i}){return(0,u.jsx)(n?f.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:t.cn(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,r&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0`,e),...i})}function H({className:e,...n}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:t.cn(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...n})}function U({className:e,showIcon:n=!1,...r}){let i=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,u.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:t.cn(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[n&&(0,u.jsx)(o.Skeleton,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,u.jsx)(o.Skeleton,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function W({className:e,...n}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:t.cn(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...n})}function G({className:e,...n}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:t.cn(`group/menu-sub-item relative`,e),...n})}function K({asChild:e=!1,size:n=`md`,isActive:r=!1,className:i,...a}){return(0,u.jsx)(e?f.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":n,"data-active":r,className:t.cn(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,n===`sm`&&`text-xs`,n===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,i),...a})}exports.Sidebar=w,exports.SidebarContent=M,exports.SidebarFooter=A,exports.SidebarGroup=N,exports.SidebarGroupAction=F,exports.SidebarGroupContent=I,exports.SidebarGroupLabel=P,exports.SidebarHeader=k,exports.SidebarInput=O,exports.SidebarInset=D,exports.SidebarMenu=L,exports.SidebarMenuAction=V,exports.SidebarMenuBadge=H,exports.SidebarMenuButton=B,exports.SidebarMenuItem=R,exports.SidebarMenuSkeleton=U,exports.SidebarMenuSub=W,exports.SidebarMenuSubButton=K,exports.SidebarMenuSubItem=G,exports.SidebarProvider=C,exports.SidebarRail=E,exports.SidebarSeparator=j,exports.SidebarTrigger=T,exports.useSidebar=S;
@@ -0,0 +1,11 @@
1
+ //#region ../../node_modules/.pnpm/@radix-ui+number@1.1.3/node_modules/@radix-ui/number/dist/index.mjs
2
+ var e = Object.defineProperty, t = (t, n) => e(t, "name", {
3
+ value: n,
4
+ configurable: !0
5
+ });
6
+ function n(e, [t, n]) {
7
+ return Math.min(n, Math.max(t, e));
8
+ }
9
+ t(n, "clamp");
10
+ //#endregion
11
+ export { n as clamp };
package/dist/index11.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-dialog");a=e.__toESM(a,1);function o({...e}){return(0,i.jsx)(a.Root,{"data-slot":`dialog`,...e})}function s({...e}){return(0,i.jsx)(a.Trigger,{"data-slot":`dialog-trigger`,...e})}function c({...e}){return(0,i.jsx)(a.Portal,{"data-slot":`dialog-portal`,...e})}function l({...e}){return(0,i.jsx)(a.Close,{"data-slot":`dialog-close`,...e})}function u({className:e,...n}){return(0,i.jsx)(a.Overlay,{"data-slot":`dialog-overlay`,className:t.cn(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...n})}function d({className:e,children:r,showCloseButton:o=!0,...s}){return(0,i.jsxs)(c,{"data-slot":`dialog-portal`,children:[(0,i.jsx)(u,{}),(0,i.jsxs)(a.Content,{"data-slot":`dialog-content`,className:t.cn(`bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg`,e),...s,children:[r,o&&(0,i.jsxs)(a.Close,{"data-slot":`dialog-close`,className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,i.jsx)(n.XIcon,{}),(0,i.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function f({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`dialog-header`,className:t.cn(`flex flex-col gap-2 text-center sm:text-left`,e),...n})}function p({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`dialog-footer`,className:t.cn(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...n})}function m({className:e,...n}){return(0,i.jsx)(a.Title,{"data-slot":`dialog-title`,className:t.cn(`text-lg leading-none font-semibold`,e),...n})}function h({className:e,...n}){return(0,i.jsx)(a.Description,{"data-slot":`dialog-description`,className:t.cn(`text-muted-foreground text-sm`,e),...n})}exports.Dialog=o,exports.DialogClose=l,exports.DialogContent=d,exports.DialogDescription=h,exports.DialogFooter=p,exports.DialogHeader=f,exports.DialogOverlay=u,exports.DialogPortal=c,exports.DialogTitle=m,exports.DialogTrigger=s;
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("class-variance-authority"),a=require("@radix-ui/react-slot");var o=(0,i.cva)(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-all disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`,accent:`bg-accent text-accent-foreground hover:bg-accent/90`,"accent-cta":`bg-accent text-accent-foreground hover:bg-accent/90 shadow-lg shadow-accent/25 hover:shadow-xl hover:shadow-accent/30 hover:scale-105`,gradient:`bg-linear-to-r from-primary to-accent text-primary-foreground hover:opacity-95 shadow-lg shadow-primary/25 hover:shadow-xl hover:shadow-primary/30`,"gradient-success":`bg-gradient-to-r from-emerald-500 to-green-600 hover:from-emerald-600 hover:to-green-700 text-white shadow-lg shadow-emerald-500/30 hover:shadow-emerald-500/40`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,xl:`h-11 rounded-xl px-6 has-[>svg]:px-4`,"2xl":`h-14 rounded-xl px-8 text-lg has-[>svg]:px-6`,icon:`size-9`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function s({className:e,variant:n=`default`,size:i=`default`,asChild:s=!1,...c}){return(0,r.jsx)(s?a.Slot:`button`,{"data-slot":`button`,"data-variant":n,"data-size":i,className:t.cn(o({variant:n,size:i,className:e})),...c})}exports.Button=s,exports.buttonVariants=o;
package/dist/index11.js CHANGED
@@ -1,86 +1,81 @@
1
1
  "use client";
2
2
  import { cn as e } from "./index3.js";
3
- import { Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a } from "./index10.js";
4
- import { SearchIcon as o } from "lucide-react";
3
+ import { Action as t, Cancel as n, Content2 as r, Description2 as i, Overlay2 as a, Portal2 as o, Root2 as s, Title2 as c, Trigger2 as l } from "./index9.js";
4
+ import { buttonVariants as u } from "./index10.js";
5
5
  import "react";
6
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
- import { Command as l } from "cmdk";
8
- //#region src/ui/command.tsx
9
- function u({ className: t, ...n }) {
10
- return /* @__PURE__ */ s(l, {
11
- "data-slot": "command",
12
- className: e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", t),
13
- ...n
6
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
+ //#region src/ui/alert-dialog.tsx
8
+ function p({ ...e }) {
9
+ return /* @__PURE__ */ d(s, {
10
+ "data-slot": "alert-dialog",
11
+ ...e
14
12
  });
15
13
  }
16
- function d({ title: o = "Command Palette", description: l = "Search for a command to run...", children: d, className: f, showCloseButton: p = !0, ...m }) {
17
- return /* @__PURE__ */ c(t, {
18
- ...m,
19
- children: [/* @__PURE__ */ c(i, {
20
- className: "sr-only",
21
- children: [/* @__PURE__ */ s(a, { children: o }), /* @__PURE__ */ s(r, { children: l })]
22
- }), /* @__PURE__ */ s(n, {
23
- className: e("overflow-hidden p-0", f),
24
- showCloseButton: p,
25
- children: /* @__PURE__ */ s(u, {
26
- className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
27
- children: d
28
- })
29
- })]
14
+ function m({ ...e }) {
15
+ return /* @__PURE__ */ d(l, {
16
+ "data-slot": "alert-dialog-trigger",
17
+ ...e
30
18
  });
31
19
  }
32
- function f({ className: t, ...n }) {
33
- return /* @__PURE__ */ c("div", {
34
- "data-slot": "command-input-wrapper",
35
- className: "flex h-9 items-center gap-2 border-b px-3",
36
- children: [/* @__PURE__ */ s(o, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ s(l.Input, {
37
- "data-slot": "command-input",
38
- className: e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", t),
39
- ...n
40
- })]
20
+ function h({ ...e }) {
21
+ return /* @__PURE__ */ d(o, {
22
+ "data-slot": "alert-dialog-portal",
23
+ ...e
41
24
  });
42
25
  }
43
- function p({ className: t, ...n }) {
44
- return /* @__PURE__ */ s(l.List, {
45
- "data-slot": "command-list",
46
- className: e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", t),
26
+ function g({ className: t, ...n }) {
27
+ return /* @__PURE__ */ d(a, {
28
+ "data-slot": "alert-dialog-overlay",
29
+ className: e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", t),
47
30
  ...n
48
31
  });
49
32
  }
50
- function m({ ...e }) {
51
- return /* @__PURE__ */ s(l.Empty, {
52
- "data-slot": "command-empty",
53
- className: "py-6 text-center text-sm",
54
- ...e
55
- });
33
+ function _({ className: t, ...n }) {
34
+ return /* @__PURE__ */ f(h, { children: [/* @__PURE__ */ d(g, {}), /* @__PURE__ */ d(r, {
35
+ "data-slot": "alert-dialog-content",
36
+ className: e("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", t),
37
+ ...n
38
+ })] });
56
39
  }
57
- function h({ className: t, ...n }) {
58
- return /* @__PURE__ */ s(l.Group, {
59
- "data-slot": "command-group",
60
- className: e("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", t),
40
+ function v({ className: t, ...n }) {
41
+ return /* @__PURE__ */ d("div", {
42
+ "data-slot": "alert-dialog-header",
43
+ className: e("flex flex-col gap-2 text-center sm:text-left", t),
61
44
  ...n
62
45
  });
63
46
  }
64
- function g({ className: t, ...n }) {
65
- return /* @__PURE__ */ s(l.Separator, {
66
- "data-slot": "command-separator",
67
- className: e("bg-border -mx-1 h-px", t),
47
+ function y({ className: t, ...n }) {
48
+ return /* @__PURE__ */ d("div", {
49
+ "data-slot": "alert-dialog-footer",
50
+ className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
68
51
  ...n
69
52
  });
70
53
  }
71
- function _({ className: t, ...n }) {
72
- return /* @__PURE__ */ s(l.Item, {
73
- "data-slot": "command-item",
74
- className: e("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
54
+ function b({ className: t, ...n }) {
55
+ return /* @__PURE__ */ d(c, {
56
+ "data-slot": "alert-dialog-title",
57
+ className: e("text-lg font-semibold", t),
75
58
  ...n
76
59
  });
77
60
  }
78
- function v({ className: t, ...n }) {
79
- return /* @__PURE__ */ s("span", {
80
- "data-slot": "command-shortcut",
81
- className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
61
+ function x({ className: t, ...n }) {
62
+ return /* @__PURE__ */ d(i, {
63
+ "data-slot": "alert-dialog-description",
64
+ className: e("text-muted-foreground text-sm", t),
82
65
  ...n
83
66
  });
84
67
  }
68
+ function S({ className: n, ...r }) {
69
+ return /* @__PURE__ */ d(t, {
70
+ className: e(u(), n),
71
+ ...r
72
+ });
73
+ }
74
+ function C({ className: t, ...r }) {
75
+ return /* @__PURE__ */ d(n, {
76
+ className: e(u({ variant: "outline" }), t),
77
+ ...r
78
+ });
79
+ }
85
80
  //#endregion
86
- export { u as Command, d as CommandDialog, m as CommandEmpty, h as CommandGroup, f as CommandInput, _ as CommandItem, p as CommandList, g as CommandSeparator, v as CommandShortcut };
81
+ export { p as AlertDialog, S as AlertDialogAction, C as AlertDialogCancel, _ as AlertDialogContent, x as AlertDialogDescription, y as AlertDialogFooter, v as AlertDialogHeader, g as AlertDialogOverlay, h as AlertDialogPortal, b as AlertDialogTitle, m as AlertDialogTrigger };
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty,t=(t,n)=>e(t,`name`,{value:n,configurable:!0});function n(e,[t,n]){return Math.min(n,Math.max(t,e))}t(n,`clamp`),exports.clamp=n;